/*#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
	
int main()
{
	char a[50] = { 0 };
	char as[51] = { 0 };
	int i = 0,j=0;
	while (gets(a) != NULL)
	{
		int count = 0;
		while (a[count] != '\0')
		{
			count++;
		}
		if (count > 1)
		{
			for (i = count - 1; i >= 0; i--)
			{
				if (a[i] == '0')

				{
					a[i] = '\0';
					count--;

				}
				else
					break;
			}
		}
		if (a[0] != '-')
		{
			for (i = 0, j = count-1; i < count; i++)
				as[i] = a[j--];
		}
		else
		{
			
			as[0] = '-';
			for (i = 1, j = count-1; i < count; i++)
				as[i] = a[j--];
		}
		as[count] = '\0';
		
			printf("%s\n", as);
	}

	return 0;
}*/